package com.gscitysfy.cus.drain.modules.pipe.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-11-15 10:50:04
 */
@Getter
@Setter
@TableName("drain_pipe_network_job")
public class DrainPipeNetworkJob implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long cmKid;

    /**
     * 项目编号
     */
    private String cmPlanNo;

    /**
     * 关联计划id
     */
    private Long cmPlanId;

    /**
     * 任务编号
     */
    private String cmJobNo;

    /**
     * 任务名称		项目编号		
     */
    private String cmJobName;

    /**
     * 任务计划开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmJobStartDate;

    /**
     * 任务计划j结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmJobEndDate;

    /**
     * 检测单位		检测单位		检测单位		检测单位		
     */
    private String cmJobUtil;

    /**
     * 检测人员		
     */
    private String cmJobPeople;

    /**
     * 管网类型		
     */
    private String cmJobPipeType;

    /**
     * 任务状态		
     */
    private Integer cmJobStatus;

    private String cmCreator;

    private String cmModifier;

    private String cmOrgflag;

    private Long cmRegflag;

    private String cmTenantid;

    private String cmJobPeopleId;

    private String  cmJobPeoplePhone;



    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmAddtime;

    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmUptime;

    private Integer cmVersion;

    private Boolean cmUsable;


    /**
     * 任务详情
     */
    @TableField(exist = false)
    private DrainPipeNetworkPlan drainPipeNetworkPlan;

    /**
     * 管道列表
     */
    @TableField(exist = false)
    private List<DrainPipeNetworkPage> drainPipeNetworkPage;





}
